package com.untour.im.codec.protocol.packet.client;


import com.untour.im.codec.protocol.command.Command;
import com.untour.im.codec.protocol.message.body.LoginRespMessageBody;
import com.untour.im.codec.protocol.message.content.TxtMessageContent;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 登录应答
 */
@Getter
@Setter
@NoArgsConstructor
public class LoginServerResponsePacket extends BaseResponsePacket<LoginRespMessageBody> {

    public LoginServerResponsePacket(String messageId, Byte messageType, String content) {
        super(Command.LOGIN_RESPONSE,messageType, new LoginRespMessageBody(messageId,
                        new TxtMessageContent(content)));
    }
}
